package org.dolirio.soft.aop.service;

import org.dolirio.soft.hib.dao.ElectionDAO;
import org.dolirio.soft.model.Election;
import org.dolirio.soft.util.BeanSource;
import org.springframework.transaction.annotation.Transactional;

public class ElectionService {

	public static ElectionService get() {

		return (ElectionService) BeanSource.getBean("ElectionService");
	}

	@Transactional
	public void save(Election election) {

		ElectionDAO.get().save(election);
	}
}
